package com.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.db.EntityMapping;
import com.entity.Users;

public class UsersMapping implements EntityMapping {

	public Object mapping(ResultSet rs) {
		Users users = null;
		try {
			users=new Users(
					rs.getInt("user_id"),
					rs.getString("user_name"),
					rs.getString("user_password")
					);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return users;
	}

}
